package com.zhongyu.base.provider.apiimpl;

import com.zhongyu.base.provider.mapper.AreaMapper;
import com.zhongyu.comm.api.AreaApi;
import com.zhongyu.comm.pojo.Area;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
@RestController
public class AreaApiImpl implements AreaApi {

    @Resource
    private AreaMapper areaMapper;
    @Override
    public List<Area> findAll() {
     List<Area>list=areaMapper.selectList(null);
        return list;
    }
}
